<?php namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Example
 *
 * @property integer $id
 * @property integer $org_id
 * @property string $title
 * @property string $org_desc
 * @property string $url
 * @property integer $img_exam_id
 * @property string $deleted_at
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 * @method static \Illuminate\Database\Query\Builder|\App\Example whereId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Example whereOrgId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Example whereTitle($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Example whereOrgDesc($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Example whereUrl($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Example whereImgExamId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Example whereDeletedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Example whereCreatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Example whereUpdatedAt($value)
 * @property-read \App\Org $org
 * @property-read \App\Images $examImg
 * @property integer $state
 * @method static \Illuminate\Database\Query\Builder|\App\Example whereState($value)
 */
class Example extends Model
{
    protected $table = 'example' ;
    use SoftDeletes;

    public function org(){
        return $this->belongsTo('App\Org','org_id');
    }

    public function examImg(){
        return $this->belongsTo('App\Images','img_exam_id');
    }
}